import 'package:json_annotation/json_annotation.dart';

part 'user_role.g.dart';


@JsonSerializable()
class UserRole extends Object {

  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'val')
  String val;

  UserRole(this.id,this.name,this.val,);

  factory UserRole.fromJson(Map<String, dynamic> srcJson) => _$UserRoleFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserRoleToJson(this);

}